﻿CREATE PROCEDURE [dbo].[Purchase_OperationDetails_Put]
	@purchaseId bigint,

	@operationDetailsError nvarchar(MAX) = NULL,
	@operationDetailsErrorInfo nvarchar(MAX) = NULL,

	@operationDetailsOperationId nvarchar(MAX) = NULL,
	@operationDetailsStatus nvarchar(32) = NULL,
	@operationDetailsPatternId nvarchar(32) = NULL,
	@operationDetailsDirection nvarchar(8) = NULL,
	@operationDetailsAmount decimal(8,2) = NULL,
	@operationDetailsDatetime datetime = NULL,
	@operationDetailsTitle nvarchar(MAX) = NULL,
	@operationDetailsSender nvarchar(MAX) = NULL,
	@operationDetailsRecipient nvarchar(MAX) = NULL,
	@operationDetailsRecipientType nvarchar(32) = NULL,
	@operationDetailsMessage nvarchar(MAX) = NULL,
	@operationDetailsComment nvarchar(MAX) = NULL,
	@operationDetailsCodepro bit = NULL,
	@operationDetailsLabel nvarchar(MAX) = NULL,
	@operationDetailsDetails nvarchar(MAX) = NULL


AS
BEGIN
	--UPDATE [dbo].[purchase_Item]
	--SET [OperationDetailsOperationId] = @operationDetailsOperationId
	--		,[OperationDetailsError] = @operationDetailsError
	--		,[OperationDetailsErrorInfo] = @operationDetailsErrorInfo
	--		,[OperationDetailsStatus] = @operationDetailsStatus
	--		,[OperationDetailsPatternId] = @operationDetailsPatternId
	--		,[OperationDetailsDirection] = @operationDetailsDirection
	--		,[OperationDetailsAmount] = @operationDetailsAmount
	--		,[OperationDetailsDatetime] = @operationDetailsDatetime
	--		,[OperationDetailsTitle] = @operationDetailsTitle
	--		,[OperationDetailsSender] = @operationDetailsSender
	--		,[OperationDetailsRecipient] = @operationDetailsRecipient
	--		,[OperationDetailsRecipientType] = @operationDetailsRecipientType
	--		,[OperationDetailsMessage] = @operationDetailsMessage
	--		,[OperationDetailsComment] = @operationDetailsComment
	--		,[OperationDetailsCodepro] = @operationDetailsCodepro
	--		,[OperationDetailsLabel] = @operationDetailsLabel
	--		,[OperationDetailsDetails] = @operationDetailsDetails
	--WHERE [PurchaseId] = @purchaseId

	SELECT GETUTCDATE()
END